package yunquan.wang.base.spring;

import java.util.Properties;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;

import yunquan.wang.base.config.AppConfig;
/**
 * 自定义的属性加载器
 * @author Administrator
 *
 */
public class SpringPropertyPlaceholderConfigurer extends PropertyPlaceholderConfigurer{
	
	protected void processProperties(ConfigurableListableBeanFactory beanFactoryToProcess, Properties props)
			throws BeansException {
		AppConfig.setApplicationPorperties(props);
		super.processProperties(beanFactoryToProcess, props);
		
	}
}
